<%-- 
    Document   : home
    Created on : Sep 29, 2010, 2:40:54 PM
    Author     : M Bilal
--%>


<%@page import="wap.rockvilletech.portal.DBProc"%>
<%@ page import="java.io.*,java.sql.*,java.net.*"%>
<%@ page import="org.apache.log4j.Logger" %>

<% final Logger log = Logger.getLogger("JSP.INDEX");%>

<%@ include file="includes/header.jspf"%>

<div align="center" style="background-color: #dedfe1;">
    <div style="padding-top:2px;background-image:url('images/new/.jpg');background-repeat: repeat-x;background-position:0% 350%;" title="">
        <a href="<%=context_Path%>"><img src='<%=context_Path%>/imgsrv?img=home_selected<%=sImgFix%>.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="home" title="Home"></a>
        <a href="<%=context_Path%>/content/index.jsp?app=Bollywood"><img src='<%=context_Path%>/imgsrv?img=downloads<%=sImgFix%>.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="downloads" title="Downloads"></a>
        <a href="<%=context_Path%>/coolstuff/index.jsp"><img src='<%=context_Path%>/imgsrv?img=cool_stuff<%=sImgFix%>.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="coolstuff" title="Cool Stuff"></a>
        <a href="<%=context_Path%>/news/news.jsp"><img src='<%=context_Path%>/imgsrv?img=news<%=sImgFix%>.jpg&repo=PI&s=0&w=<%=mainButtonImgWidth%>' alt="news" title="News"></a>
    </div>
    <div style="margin:5px 5px 5px 5px; background-color: #F2F2F2;text-align:center;">
        <div style="text-align:left;">
        <%
        thisPage = "Ufone-Home";
        Vector vServices = DBProc.getInstance().getServicesCategoryz();
        //name, title, imgurl, href, details, title_ur, details_ur
        String cat_name = "", cat_id = "", cat_icon = "", cat_format = "";
        boolean isHref = false;
        try {
            String[] arrService = null;
            if (!vServices.isEmpty()) {

                for (int i = 0; i < vServices.size(); i++) {
                    arrService = (String[]) vServices.get(i);
                    cat_id = arrService[0];
                    cat_name = arrService[1];
                    cat_icon = arrService[2];
                    cat_format = arrService[3];
        	%>
            <a href="<%=context_Path%>/service.jsp?cat=<%=cat_name%>&id=<%=cat_id%>" class="LinkIndex1"><img
                    src="<%=context_Path%>/images/services/<%=(wurfl_screenWidth <= 176) ? cat_icon + "_s" : cat_icon%>.<%=cat_format%>"
                    alt="<%=cat_name%>" title="<%=cat_name%>"/></a>&nbsp;
            <%
                }
            }
        } catch (Exception e) {
            log.error("Fetch Services :", e);
            /*out.println("No Service Available");*/
        }
		%>
        <a href="<%=context_Path%>/ugreetings" class="LinkIndex1"><img 
        src="<%=context_Path%>/images/services/<%=(wurfl_screenWidth <= 176) ? "ug_s" : "ug"%>.png" alt="UGreetings"/></a>&nbsp;
        <!--
        <a href="<%=context_Path%>/cricket" class="LinkIndex1"><img 
        src="<%=context_Path%>/images/services/<%=(wurfl_screenWidth <= 176) ? "wc_s" : "wc"%>.png" 
        alt="Cricket"/></a>
        -->
        <a href="<%=context_Path%>/ContentService.jsp?srvid=80" class="LinkIndex1"><img 
        src="<%=context_Path%>/images/services/<%=(wurfl_screenWidth <= 176) ? "cokestudio_s" : "cokestudio"%>.png" 
        alt="Coke Studio"/></a>
        <a href="<%=context_Path%>/ContentService.jsp?srvid=81" class="LinkIndex1"><img 
        src="<%=context_Path%>/images/services/<%=(wurfl_screenWidth <= 176) ? "umobiletv_s" : "umobiletv"%>.png" 
        alt="UMobile TV"/></a>
        </div>
    </div>
    <%@include file="/includes/horizontal_bottom_menu.jspf"%>
    <%@ include file="includes/others.jspf"%>
    <div style="padding:0px 0px 0px 0px;text-decoration: underline;">
        <jsp:include page="banner.jsp">
            <jsp:param name="w" value="<%=width%>"/>
        </jsp:include>
    </div>

</div>

<%@ include file="includes/footer.jspf"%>

<%
            wpb.LogVisit(strIP, thisPage, strGsm, strApn, strBrand, strModel, app, request.getQueryString());
%>